// retrieve
export const getToken = (name = 'user') => {
  console.log('取token')
  return JSON.parse(localStorage.getItem(name))
}
// create
export const setToken = (key,value) => {
  localStorage.setItem(key,JSON.stringify(value))
}
// delete
export const removeToken = (removeItemName = 'user') => {
  localStorage.removeItem(removeItemName)
}
// delete All
export const clearToken = () => {
  localStorage.clear()
}
